import {
  get,
  post
} from "../api"

//创建名片
export const addBusinessCard = data => post('/bmj-api/api/ums/umsBusinessCard/addBusinessCard', data)

//名片详情
export const businessCardInfo = data => get('/bmj-api/api/ums/umsBusinessCard/businessCardInfo', data)

//取消收藏名片
export const cancelCollectBusinessCard = data => post('/bmj-api/api/ums/umsBusinessCard/cancelCollectBusinessCard', data)

//收藏名片
export const collectBusinessCard = data => post('/bmj-api/api/ums/umsBusinessCard/collectBusinessCard', data)

//生成名片二维码
export const generateQRCode = data => get('/bmj-api/api/ums/umsBusinessCard/generateQRCode', data)

//通过用户id获取用户名片
export const getByUserIDUserBusinessCard = data => get('/bmj-api/api/ums/umsBusinessCard/getByUserIDUserBusinessCard', data)

//我的名片
export const queryMyBusinessCard = data => get('/bmj-api/api/ums/umsBusinessCard/queryMyBusinessCard', data)

//我的名片收藏
export const queryMyBusinessCardCollection = data => get('/bmj-api/api/ums/umsBusinessCard/queryMyBusinessCardCollection', data)

//设置名片隐私权限
export const setUpUserBusinessCardPrivacyCompetence = data => post('/bmj-api/api/ums/umsBusinessCard/setUpUserBusinessCardPrivacyCompetence', data)

//设置名片置顶状态
export const topUserBusinessCard = data => post('/bmj-api/api/ums/umsBusinessCard/topUserBusinessCard', data)

//编辑名片
export const updateBusinessCard = data => post('/bmj-api/api/ums/umsBusinessCard/updateBusinessCard', data)

//删除名片
export const deleteBusinessCard = data => post('/bmj-api/api/ums/umsBusinessCard/deleteBusinessCard', data)